SDAC

TCustomMSConnection Members

TCustomMSConnection class overview.

Properties

Name Description

ClientVersion

Contains the version of Microsoft OLE DB Provider for SQL Server.

ConnectDialog (inherited from TCustomDAConnection)

Allows to link a TCustomConnectDialog component.

ConnectString (inherited from TCustomDAConnection)

Used to specify the connection information, such as: UserName, Password, Server, etc.

ConvertEOL (inherited from TCustomDAConnection)

Allows customizing line breaks in string fields and parameters.

Database

Used to specify the database name that is a default source of data for SQL queries once a connection is established.

InTransaction (inherited from TCustomDAConnection)

Indicates whether the transaction is active.

IsolationLevel

Used to specify the extent to which all outside transactions interfere with subsequent transactions of the current connection.

LoginPrompt (inherited from TCustomDAConnection)

Specifies whether a login dialog appears immediately before opening a new connection.

Options

Used to specify the behaviour of a TCustomMSConnection object.

Password (inherited from TCustomDAConnection)

Serves to supply a password for login.

Pooling (inherited from TCustomDAConnection)

Enables or disables using connection pool.

PoolingOptions (inherited from TCustomDAConnection)

Specifies the behaviour of connection pool.

Server (inherited from TCustomDAConnection)

Serves to supply the server name for login.

ServerVersion

Contains the exact number of the SQL Server version.

Username (inherited from TCustomDAConnection)

Used to supply a user name for login.

Methods

Name Description

ApplyUpdates (inherited from TCustomDAConnection)

Overloaded. Applies changes in datasets.

AssignConnect

Shares database connection between the TCustomMSConnection components.

Commit (inherited from TCustomDAConnection)

Commits current transaction.

Connect (inherited from TCustomDAConnection)

Establishes a connection to the server.

CreateDataSet

Returns a new object of the TCustomMSDataset class and associates it with this connection object.

CreateSQL

Returns a new instance of the TMSSQL class and associates it with this connection object.

Disconnect (inherited from TCustomDAConnection)

Performs disconnect.

ExecProc (inherited from TCustomDAConnection)

Allows to execute stored procedure or function providing its name and parameters.

ExecProcEx (inherited from TCustomDAConnection)

Allows to execute a stored procedure or function.

ExecSQL (inherited from TCustomDAConnection)

Executes a SQL statement with parameters.

ExecSQLEx (inherited from TCustomDAConnection)

Executes any SQL statement outside the TQuery or TSQL components.

GetDatabaseNames (inherited from TCustomDAConnection)

Returns a database list from the server.

GetKeyFieldNames (inherited from TCustomDAConnection)

Provides a list of available key field names.

GetStoredProcNames (inherited from TCustomDAConnection)

Returns a list of stored procedures from the server.

GetTableNames (inherited from TCustomDAConnection)

Provides a list of available tables names.

MonitorMessage (inherited from TCustomDAConnection)

Sends a specified message through the TCustomDASQLMonitor component.

OpenDatasets

Opens several datasets as one batch.

Ping (inherited from TCustomDAConnection)

Used to check state of connection to the server.

RemoveFromPool (inherited from TCustomDAConnection)

Marks the connection that should not be returned to the pool after disconnect.

Rollback (inherited from TCustomDAConnection)

Discards all current data changes and ends transaction.

StartTransaction (inherited from TCustomDAConnection)

Begins a new user transaction.

Events

Name Description

OnConnectionLost (inherited from TCustomDAConnection)

This event occurs when connection was lost.

OnError (inherited from TCustomDAConnection)

This event occurs when an error has arisen in the connection.
© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback